﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<title>我的申请单 - 个人中心 - {site.Name}</title>
<script type="text/javascript" src="{site.Dir}_data/SysConfig.js"></script>
<script type="text/javascript" src="{site.Dir}_libs/jquery-min.js"></script>
<script type="text/javascript" src="{site.Dir}_libs/jquery.jtemplates.js"></script>
<script type="text/javascript" src="{site.Dir}scripts/jumbotcms.js?v4"></script>
<link type="text/css" rel="stylesheet" href="{site.Dir}style/global.css" />
<script type="text/javascript" src="{site.Dir}scripts/front.js"></script>
<script type="text/javascript">
var sdate = joinValue('sdate');
var pagesize=10;
var page=thispage();
(function(){
	$(document).ready(function() {
		$.ajax({
			type:		"get",
			dataType:	"json",
			data:		"time="+(new Date().getTime()),
			url:		site.Dir + "ajax/user.aspx?oper=ajaxUserInfo",
			success:	function(data){
				aLoad('');
			}
		});
	});
})();
function aLoad(s) {
	page = "1";
	if(s == "1w")
		sdate = "&sdate=1w";
	else if(s == "1m")
		sdate = "&sdate=1m";
	else if(s == "1y")
		sdate = "&sdate=1y";
	else
		sdate = "";
	ajaxList(page);
}
function ajaxList(currentpage)
{
	//设置选项卡
	for(i=1; i<5; i++)
	{
		$$("tab"+i).className = "";
        
	}
	if(sdate == "&sdate=1w")
		$$("tab1").className = "currently";
	else if(sdate == "&sdate=1m")
		$$("tab2").className = "currently";
	else if(sdate == "&sdate=1y")
		$$("tab3").className = "currently";
	else
		$$("tab4").className = "currently";
	if(currentpage!=null) page=currentpage;
	$.ajax({
		type:		"get",
		dataType:	"json",
		data:		"page="+currentpage+"&pagesize="+pagesize+"&time="+(new Date().getTime()),
		url:		"ajax.aspx?oper=ajaxGetList"+sdate,
		error:		function(XmlHttpRequest,textStatus, errorThrown){if(XmlHttpRequest.responseText!=""){alert(XmlHttpRequest.responseText);}},
		success:	function(d){
			switch (d.result)
			{
			case '0':
				JumbotCms.Alert(d.returnval, "0");
				break;
			case '1':
				$("#ajaxList").setTemplateElement("tplList", null, {filter_data: false});
				$("#ajaxList").processTemplate(d);
				$("#ajaxPageBar").html(d.pagerbar);
				break;
			}
		}
	});
}
</script>
<script type="text/javascript" src="{site.Dir}user/otherfiles/scripts/ajax.js"></script>
</head>
<body>
<style>
@import url({site.Dir}user/otherfiles/css/writer_back.v2.css);
#ucmenu{width:600px;}
</style>
<iframe frameborder="0" scrolling="no" src="{site.Dir}user/index/index.aspx?do=header" width="100%" height="76" marginwidth="0" marginheight="0" hspace="0" vspace="0" id="ifheader"></iframe>
<!--顶部结束,中框架开始-->
<div id="user_content">
	<!--menu-->
	<div class="user_menu">
		<iframe frameborder="0" scrolling="no" src="{site.Dir}user/index/index.aspx?do=left_customer" width="176" height="700" name="iFrame1"  marginwidth="0" marginheight="0" hspace="0" vspace="0" id="ifleft"></iframe>
	</div>
	<script type="text/javascript">
function reinitIframe(str){
	var iframe = document.getElementById(str);
	try{
		var bHeight = iframe.contentWindow.document.body.scrollHeight;
		var dHeight = iframe.contentWindow.document.documentElement.scrollHeight;
		var height = Math.max(bHeight, dHeight);
		iframe.height =  height;
	}catch (ex){}
}
window.setInterval("reinitIframe('ifleft')", 200);
</script>
	<!--右侧功能细分区-->
	<div id="function_box">
		<!--二级菜单-->
		<div class="nav_two">
			<ul>
				<li><a href="{site.Dir}customer/applylist/index.aspx?mod=customer">消费明细</a></li>
				<li class="currently"><a>申请单</a></li>
				<li><a href="{site.Dir}customer/buypoints/index.aspx?mod=customer">购买点数</a></li>
				<li><a href="{site.Dir}customer/activepointscard/index.aspx?mod=customer">激活点卡</a></li>
				<li><a href="{site.Dir}customer/vipapply/index.aspx?mod=customer">申请包年</a></li>
			</ul>
			<div class="clear"></div>
		</div>
		<!--三级菜单-->
		<div id="nav_box">
			<ul class="nav_three">
				<li id="tab4"><a href="javascript:;" onclick="aLoad('')">全部</a></li>
				<li id="tab3"><a href="javascript:;" onclick="aLoad('1y')">本年</a></li>
				<li id="tab2"><a href="javascript:;" onclick="aLoad('1m')">本月</a></li>
				<li id="tab1"><a href="javascript:;" onclick="aLoad('1w')">本周</a></li>
			</ul>
			<div class="clear"></div>
		</div>
		<!--右侧列表-->
		<div id="list">
        <textarea id="tplList" style="display:none">
        <table width="100%" cellpadding="0" cellspacing="0">
	<tr>
		<th width="*">详情</th>
		<th scope="col" style="width:120px;">申请时间</th>
		<th scope="col" style="width:60px;">状态</th>
	</tr>
	{#foreach $T.table as record}
	<tr>
		<td align="left">&nbsp;{$T.record.applyinfo}</td>
		<td align="center">{$T.record.applytime}</td>
		<td align="center">
			{#if $T.record.checked == "1"}
			<font color='blue'>已经受理</font>
			{#/if}
			{#if $T.record.checked == "0"}
			<font color='red'>还未受理</font>
			{#/if}
		</td>
	</tr>
	{#/for}
</table></textarea>
			<div id="ajaxList"></div>
			<div class="clear"></div>
		</div>
		<div id="ajaxPageBar" class="pages"> </div>
		<div class="clear"></div>
	</div>
	<div class="clear"></div>
</div>
<iframe frameborder="0" scrolling="no" src="{site.Dir}user/index/index.aspx?do=footer" width="100%" height="50" marginwidth="0" marginheight="0" hspace="0" vspace="0" id="iffooter"></iframe>
</body>
</html>
